package com.hq.ims.data.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hq.ims.data.vo.CompanyServiceTypeMapstruct;
import com.hq.mybatis.base.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.Alias;

import java.io.Serializable;

/**
 * @author 蒋柏平
 * @since 20241022
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Alias("CompanyServiceType")
@TableName(value = "company_service_type")
@ApiModel(value = "企业服务类型", description = "企业服务类型")
public class CompanyServiceType extends BaseModel<CompanyServiceType> implements Serializable {

    @ApiModelProperty(value = "企业资质ID")
    @TableId(value = "company_service_type_id", type = IdType.ASSIGN_UUID)
    private String companyServiceTypeId;

    @ApiModelProperty(value = "公司ID")
    @TableField(value = "company_id")
    private String companyId;

    @ApiModelProperty(value = "服务类型ID")
    @TableField(value = "service_type_id")
    private String serviceTypeId;

    @ApiModelProperty(value = "服务类型名称")
    @TableField(value = "service_type_name")
    private String serviceTypeName;

    public CompanyServiceTypeMapstruct.CompanyServiceTypeRowAuthVo auth() {
        CompanyServiceTypeMapstruct.CompanyServiceTypeRowAuthVo auth = new CompanyServiceTypeMapstruct.CompanyServiceTypeRowAuthVo(this);
        return auth;
    }

}
